package com.sdcx.agrobank.util;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewpager.widget.ViewPager;

/*
 *@Author:田恒宇
 *@Date: 2020-01-10
 *@Time:18:01
 *@Description:禁止触摸
 */
public class NoTouchViewPager extends ViewPager {
    public NoTouchViewPager(@NonNull Context context) {
        super(context);
    }

    public NoTouchViewPager(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return false;
    }

}
